package com.ruoyi.data.es.service;

import com.ruoyi.data.es.domain.SensorData;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.Optional;

/**
 * @ClassName SensorService
 * @Author Iven
 * @Description TODO
 * @Date 2020/12/3 1:40
 */
public interface SensorDataService {
    Optional<SensorData> findById(String id);

    SensorData save(SensorData sensor);

    void delete(SensorData sensor);

    Optional<SensorData> findOne(String id);

    Page<SensorData> findAll();

    Page<SensorData> findByCode(String code, PageRequest pageRequest);

    Page<SensorData> findByEquipmentCode(String equipmentCode, PageRequest pageRequest);
}
